package day214;

public class DemoTry1 {
    public static void main(String[] args) {
        /*
        int a=5,b=5;
        int c=a++;
        int d=++b;
        System.out.println(a);//6
        System.out.println(b);//6
        System.out.println(c);//5
        System.out.println(d);//6

        int a=5,b=10,c=5;
        boolean d =b>=a && a==c;
        System.out.println(d);
        System.out.println(a>=c && b>=c);
        System.out.println(a>b && b>=c);
        System.out.println(a!=b && b>c);

        int a=5,b=10,c=5;
        boolean d = a>=b&&c++>5;
        System.out.println(d);//false
        System.out.println(c);//5
        System.out.println(a<=b&&++a>5);
        System.out.println(a);

        int a = 5;
        a += 10;//a=a+10;
        System.out.println(a);
        a *=2;//30
        a /=2;//15
        a %=2;//1
        System.out.println(a);

        int age=40;
        System.out.println("age");//age
        System.out.println(age);//40
        System.out.println("age="+age);//age=40
        System.out.println("我今年年龄"+age+"岁了");//我今年年龄40岁了

        int a = 5;
        int b = a>0?1:-1;
        System.out.println(b);

        int a=5,b=8;
        int c=a>b?0:1;
        System.out.println(c);

        int score = 90;
        if(score>=0&&score<=100){
            System.out.println("成绩合法");
        }

        double price = 600.0;
        if(price>=500){
            price*=0.8;
        }else{
            price*=0.9;
        }
        System.out.println(price);

        int a=5,b=10;
        int max = a>b?a:b;
        System.out.println("max="+max);


        int a=5,b=10;
        if(a>b){
            System.out.println(a);
        }else{
            System.out.println(b);
        }

        int a=5,b=10;
        int max;
        if(a>b){
            max=a;
        }else{
            max=b;
        }
        System.out.println("max="+max);

        int year = 1998;
        if(year%4==0){
            System.out.println(year+"是闰年");
        }else{
            System.out.println(year+"是平年");
        }

         */
        int score=40;
        if(score<0||score>100) {
            System.out.println("成绩不合法");
        }else if(score>=90&&score<=100){
            System.out.println("成绩优秀");
        }else if(score>=80){
            System.out.println("成绩良好");
        }else if(score>=60){
            System.out.println("成绩合格");
        }else {
            System.out.println("成绩不合格");
        }













    }
}
